package com.awei.study.dataStructure.queue;


import com.awei.study.dataStructure.queue.abs.Priority;

/**
 * @Author liweilong
 * @Date 2023/5/25 12:35
 */
public class Entry<E> implements Priority {

    int priority;
    E value;

    public Entry(E value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" +
                "priority=" + priority +
                ", value=" + value +
                '}';
    }
}
